#pragma once

#include "IXConfigAttr.h"
#include "XBaseObjImpl.h"

class CXConfigAttrImpl : public CXBaseObjImpl<IXConfigAttr>
{
    typedef CXBaseObjImpl<IXConfigAttr> superclass;
    DEF_SKIN_CLASS_SINGLE_INTF(CXConfigAttrImpl,
        superclass,
        gs_strGuidXSkin,
        IXConfigAttr,
        0);

public:
    CXConfigAttrImpl();
    virtual ~CXConfigAttrImpl();

public:
    // IXConfigAttr
    virtual HRESULT STDMETHODCALLTYPE   GetName(OUT BSTR* pbstrName);
    virtual HRESULT STDMETHODCALLTYPE   GetValue(OUT BSTR* pbstrValue);

    // CXConfigAttrImpl
    void    put_Attr(TiXmlAttribute* pAttr);

protected:
    TiXmlAttribute*   m_pAttr;
};


